from fastapi import FastAPI
from controller import router as jsj_router

app = FastAPI()

# 包含控制器路由
app.include_router(jsj_router, prefix="/api")

@app.get("/root")
async def root():
    return {"message": "Welcome to the API"}

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=8000)